package com.hinnotek.warehouse.di

import com.hinnotek.warehouse.api.WarehouseApi
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import retrofit2.Retrofit

@Module
@InstallIn(SingletonComponent::class)
class WarehouseModule {

    @Provides
    fun provideWarehouseApi(retrofit: Retrofit) : WarehouseApi= retrofit.create(WarehouseApi::class.java)

}